
<div id ="alertas"></div>
<input id="radio1" type ="radio" name ="selTipo" value="1"
onclick="document.getElementById('buscaCod').style.display='block';document.getElementById('buscaData').style.display='none'"> Buscar por n&uacute;mero
<input id="radio2" type ="radio" name ="selTipo" value ='2'
onclick="document.getElementById('buscaCod').style.display='none';document.getElementById('buscaData').style.display='block'"> Buscar por data
<div id ="buscaCod">
    <table>
      <tr>
	  <td>N&uacute;mero</td>
	  <td><input id ="codigo" onkeypress ="mascara(this,soNumeros)"></td>
      </tr>
    </table>
</div>
<div id ="buscaData" style="display:none">
    <table>
	<tr>
	    <td>Funcion&aacute;rio</td>
	    <td><?= $funcionario; ?></td>
	</tr>
	<tr>
	    <td>Data de Lançamento</td>
	    <td><input id ="data" onkeypress ="mascara(this,data)" onblur ="mascara(this,validaDat)">
	    </td>
	</tr>
    </table>
</div>
    <div id ="trechos"></div>
    <div id ="botoes" class ="fltrt">
        <button type = 'button' onclick = 'buscar()'>Buscar</button>
        <button type = 'button' onclick = 'retornar()'>Cancelar</button>
    </div><br class ="clearfloat">
    <script type='text/javascript'>
      document.getElementById('radio1').checked = true;
    </script>


